﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
using Wicresoft.UnifyShow.Business;
using Wicresoft.UnifyShow.BusinessImpl;

namespace UnifyShowTest
{
    class TestUser
    {
        [Fact]
        public void TestUserGetListUserByName()
        {
            IUser user = new User();
            var result=user.GetListUserByName("111");
            Assert.Equal(17, result.Count);
        }

        [Fact]  
        public void TestUserGetListUserByRole()
        {
            IUser user = new User();
            var result = user.GetListUserByRole("省局%");
            Assert.Equal(3, result.Count);
        }
    }
}
